<?php
error_reporting(E_ALL);

class stuff{
	function __construct(){
		echo __CLASS__.'->'.__FUNCTION__;
	}
}

$a = new stuff();

?><br/>
<?php 

require_once '../DB.class.php';
$_config['MagicDB'] = array(
   	'driver' => 'mysql',  //数据库驱动
   	'host' => '127.0.0.1',  //MySQL服务器IP地址
   	'port' => '3306',  //端口
   	'dbname' => 'test', //数据库名
   	'username' => 'test', 
   	'password' => '',
   	'charset' => 'utf8',
   	'collate' => 'utf8_general_ci',
   	'persistent' => false,  //是否使用长连接
   	'options' => array(
   		PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
   		), //额外选项
    );

$b = DB::getAll("select * from test222 where id > 5 ");

var_dump($b);

?>
